package com.tamtamy.jtta.data.json;

import net.sf.json.JSONObject;

import com.tamtamy.jtta.data.GroupDetails;
import com.tamtamy.jtta.utility.JSONUtility;

public class JSONGroupDetails extends GroupDetails {	

	public JSONGroupDetails(JSONObject jsonObject) {
		super();
		this.id = JSONUtility.getLong(jsonObject, "id");
		this.name = JSONUtility.getString(jsonObject, "name");
		this.description = JSONUtility.getString(jsonObject, "description");
		this.creator = JSONUtility.getString(jsonObject, "creator");
		this.created = JSONUtility.getDate(jsonObject, "created");
		this.network = JSONUtility.getString(jsonObject, "network");
		this.contentCounter = JSONUtility.getLong(jsonObject, "contentCounter");;
		this.userCounter = JSONUtility.getLong(jsonObject, "userCounter");;
		this.contents = JSONUtility.getStringList(jsonObject, "contents");
		this.users = JSONUtility.getStringList(jsonObject, "users");
	}
}
